import Vue from 'vue'
import Router from 'vue-router'
const CasesList = resolve => require(['../views/CasesList'], resolve);
const CaseDetail = resolve => require(['../views/CaseDetail'], resolve);
const Survey = resolve => require(['../views/Survey'], resolve);
const Result = resolve => require(['../views/Result'], resolve);
const Test = resolve => require(['../views/Test'], resolve);

Vue.use(Router)

export default new Router({
  mode: 'hash',
  routes: [
    {
      name:'Home',
      path: '/',
      component: CasesList
    },
    // {
    //   name:'List',
    //   path: '/list',
    //   component: CasesList
    // },
    {
      name:'Case',
      path: '/case',
      component: CaseDetail
    },
    {
      name:'Survey',
      path: '/survey',
      component: Survey
    },
    {
      name:'Result',
      path: '/result',
      component: Result
    },
    {
      name:'Test',
      path: '/test',
      component: Test
    }
  ]
})
